package transportDriver;


import java.io.Serializable;

public class ChatMessage implements Serializable{


	private static final long serialVersionUID = -3423936183211356749L;

  //private String dst;
	
	private String src;
	private Boolean connection;
	private Boolean disconnection;
	private String chatRoomName;	
	private Boolean messageToBeReadByServer;
	private Boolean messageToBeReadByClient;
	private String data;
	
	
	public ChatMessage(String src,String data,String chatRoomName) {
		
		this.src = src;
		this.connection=false;
		this.disconnection=false;
		this.chatRoomName=chatRoomName;		
		this.messageToBeReadByServer=true;
		this.messageToBeReadByClient=true;		
		this.data = data;
		
		
	}
	
	
	public ChatMessage(String src,Boolean Connection,Boolean disconnection,String chatRoomName) {
		
		this.src = src;
		this.connection=Connection;
		this.disconnection=disconnection;
		this.chatRoomName=chatRoomName;
		this.messageToBeReadByServer=true;
		this.messageToBeReadByClient=true;		
		this.data = "NULL";

		
	}

	
	
	public Boolean getConnection() {
		return connection;
	}



	public void setConnection(Boolean connection) {
		this.connection = connection;
	}


	



	public Boolean getMessageToBeReadByServer() {
		return messageToBeReadByServer;
	}



	public void setMessageToBeReadByServer(Boolean messageToBeReadByServer) {
		this.messageToBeReadByServer = messageToBeReadByServer;
	}



	public Boolean getMessageToBeReadByClient() {
		return messageToBeReadByClient;
	}



	public void setMessageToBeReadByClient(Boolean messageToBeReadClient) {
		this.messageToBeReadByClient = messageToBeReadClient;
	}



	public Boolean getDisconnection() {
		return disconnection;
	}



	public void setDisconnection(Boolean disconnection) {
		this.disconnection = disconnection;
	}



	public String getChatRoomName() {
		return chatRoomName;
	}



	public void setChatRoomName(String chatRoomName) {
		this.chatRoomName = chatRoomName;
	}



	public String getSrc() {
		return src;
	}

	public void setSrc(String src) {
		this.src = src;
	}


	public String getData() {
		return data;
	}

	public void setData(String data) {
		this.data = data;
	}
	
	
	
	
}
